<table>
<tr><td valign="top"><img src="index.php?mode=service&page=fileloader&_thumbnail=1&service=display&_file_id=<<$company.logo_id>>"></td><td valign="top">
    <table>
    <tr><td style="text-align:right;"><b>Company name</b></td><td><<$company.companyname>></tD></tr>
    <tr><td style="text-align:right;"><b>Address</td></b><td><<$company.zipcode>> <<$company.city>> <<$company.street>> <<$company.sttype>> <<$company.houseno>></td></tr>
    <tr><td style="text-align:right;"><b>Contact person(s)</b></td><td><<$company.contactperson1>><br><<$company.contactperson2>></tD></tr>
    <tr><td style="text-align:right;"><b>Jobtitle(s)</b></td><td><<$company.jobtitle1>><br><<$company.jobtitle2>></td></tr>
    <tr><td style="text-align:right;"><b>Email(s)</b></td><td><<$company.email1>><br><<$company.email2>></tD></tr>
    <tr><td style="text-align:right;"><b>Telephone(s)</b></td><td><<$company.phone1>><br><<$company.phone2>></td></tr>
    <tr><td style="text-align:right;"><b>Fax(es)</b></td><td><<$company.fax1>><br><<$company.fax2>></td></tr>
    <tr><td style="text-align:right;"><b>Tax number</b></td><td><<$company.taxno>></td></tr>
    </table>
</td></tr>
</table>

<<if ($type == "profile")>>
<h3>Import product list</h3>
<table class="hslisttable"  cellspacing=0 cellpadding=3>
<tr><th>HS code</th><th>Freetype product name</th></tr>
<<section loop="$companyhs" name="hs">>
    <tr>
        <<if ($companyhs[hs].imp_exp == '1')>>
            <td style="width:150px;"><<$companyhs[hs].hs4_id>></td>
            <td style="width:250px;"><<$companyhs[hs].freetype_text>></td>
        <</if>>
    </tr>
<</section>>
</table>


<h3>Export product list</h3>
<table class="hslisttable" cellspacing=0 cellpadding=3>
<tr><th>HS code</th><th>Freetype product name</th></tr>
<<section loop="$companyhs" name="hs">>
    <<if ($companyhs[hs].hs4_id <> "")>>
    <tr>
        <<if ($companyhs[hs].imp_exp == '2')>>
            <td style="width:150px;"><<$companyhs[hs].hs4_id>></td>
            <td style="width:250px;"><<$companyhs[hs].freetype_text>></td>
        <</if>>
    </tr>
    <</if>>
<</section>>
</table>
<<else if ($type == "recommendation")>>
<table>
<tr><td>Service type</td><td><<$recommendation.service_type>></tD></tr>
<tr><td>Service description</td><tD><<$recommendation.service_description>></tD></tr>
</table>

<<else if ($type == "businesslead")>>
<table>
<tr><td>
<img src="index.php?mode=service&page=fileloader&service=display&_file_id=<<$businesslead.photo_id>>">
</td><td>
<table>
<tr><td>Product name</td><td><<$businesslead.productname>></td></tr>
<tr><td>Product description</td><td><<$businesslead.description>></tD></tr>
<tr><td>HS4 code</td><td><<$businesslead.hs4>></td></tr>
<tR><td>Quantity</td><td><<$businesslead.quantity>> <<$businesslead.unit>></td</tr>
<tr><td>Origin</td><tD><<$businesslead.country_origin>></td></tr>
<tr><td>Destination</tD><td><<$businesslead.country_dest>></td></tr>
</table>
</td></tr>
</table>

<<else if ($type == "habroad")>>
<b>Product name</B>: <<$company.productname>><br>
<B>Product HS4 code</B>: <<$company.hs4>><br>
<B>Activity description</B><br>
<<$company.activity>>

<<else if ($type == "sponsor")>>

<<if ($sponsor.spn_bl_rotator)>>
    <table>
    <tR><td valign="top">
    <img width="350px;" src="index.php?mode=service&page=fileloader&service=display&_file_id=<<$sponsor.rotator_id>>">
    </tD><td  valign="top">
    Sponsor type: Rotator<br>
    Sponsor expires: <<$sponsor.spn_bl_rotator>><br>
    </tD></tr>
    </table>
<</if>>

<<section name="sponsor" loop="$sponsors">>
<<if ($sponsors[sponsor].type == 'rotator')>>
    <table>
    <tR><td valign="top">
    <h2>Sponsor type: rotator</h2>
    <img width="350px;" src="index.php?mode=service&page=fileloader&service=display&_file_id=<<$sponsors[sponsor].rotator_id>>">
    </tD></tr>
    </table>
<</if>>
<</section>>


<<if ($sponsor.spn_bl_productphoto)>>
    <table>
    <tR><td valign="top">
    <img width="105px;" src="index.php?mode=service&page=fileloader&service=display&_file_id=<<$sponsor.photo_id>>">
    </tD><td  valign="top">
    Sponsor type: Product photo<br>
    </tD></tr>
    </table>
<</if>>

<<if ($sponsor.spn_service_selection)>>
    <table>
    <tR><td valign="top">
    <img width="350px;" src="index.php?mode=service&page=fileloader&service=display&_file_id=<<$sponsor.topic_sponsor_id>>">
    </tD><td  valign="top">
    Sponsor type: Topic sponsor with small banner<br>
    Sponsor expires: <<$sponsor.spn_servie_selection>><br>
    </tD></tr>
    </table>
<</if>>

<<if ($sponsor.spn_service_minibanner)>>
    <table>
    <tR><td valign="top">
    <img width="210px;" src="index.php?mode=service&page=fileloader&service=display&_file_id=<<$sponsor.minibanner_id>>">
    </tD><td  valign="top">
    Sponsor type: Minibanner<br>
    Sponsor expires: <<$sponsor.spn_service_minibanner>><br>
    </tD></tr>
    </table>
<</if>>

<<if ($sponsor.spn_service_logo)>>
    <table>
    <tR><td valign="top">
    <img width="105px;" src="index.php?mode=service&page=fileloader&service=display&_file_id=<<$sponsor.logo_id>>">
    </tD><td  valign="top">
    Sponsor type: Logo<br>
    Sponsor expires: <<$sponsor.spn_service_logo>><br>
    </tD></tr>
    </table>
<</if>>

<<if ($sponsor.export_hs4)>>
<h3>Export product sponsoration</h3>
    <table>
    <tr><th width="100px">HS4 code</th><th width="100px;">Expires at</th></tr>
<<section name="hs4" loop=$sponsor.export_hs4>>
    <tr><td><<$sponsor.export_hs4[hs4].hs4code>></td><td><<$sponsor.export_hs4[hs4].date>></td></tr>
<</section>>
    </table>
<</if>>

<<if ($sponsor.import_hs4)>>
<h3>Import product sponsoration</h3>
    <table>
    <tr><th width="100px">HS4 code</th><th width="100px;">Expires at</th></tr>
<<section name="hs4" loop=$sponsor.import_hs4>>
    <tr><td><<$sponsor.import_hs4[hs4].hs4code>></td><td><<$sponsor.import_hs4[hs4].date>></td></tr>
<</section>>
    </table>
<</if>>

<<if ($sponsor.spn_ha_countrysearch)>>
    <table>
    <tR><td valign="top">
    <img width="350px;" src="index.php?mode=service&page=fileloader&service=display&_file_id=<<$sponsor.topic_sponsor_id>>">
    </tD><td  valign="top">
    Sponsor type: Country search sponsoration<br>
    Sponsor expires: <<$sponsor.spn_ha_countrysearch>><br>
    </tD></tr>
    </table>
<</if>>

<</if>>
